<template>
  <div class="p-4 space-y-4">
    <div class="text-xl font-bold text-blue-700 mb-2">isBefore</div>
    <div class="text-gray-700 mb-2">判断时间是否在某个时间之前。</div>
    <div class="bg-white rounded-xl p-4 shadow">
      <div class="font-bold mb-2 text-blue-600">用法</div>
      <pre class="bg-blue-50 rounded p-3 text-sm text-blue-700 overflow-x-auto">
isBefore('2025-05-18', '2025-05-19')</pre
      >
    </div>
    <div class="bg-white rounded-xl p-4 shadow">
      <div class="font-bold mb-2 text-green-600">示例</div>
      <pre class="bg-green-50 rounded p-3 text-sm text-green-700 overflow-x-auto">
isBefore('2025-05-18', '2025-05-19') // true</pre
      >
    </div>
    <div class="bg-white rounded-xl p-4 shadow border-l-4 border-blue-400">
      <div class="font-bold mb-2 text-gray-700">说明</div>
      <div class="text-xs text-gray-600 leading-relaxed">常用于时间区间判断、表单校验等。</div>
    </div>
  </div>
</template>
